/// data : [{"id":1,"bannerUrl":"https://dimg03.c-ctrip.com/images/100g1f000001gqyipDB6A_R_1600_10000.jpg","bannerName":"尼山圣境","isShow":1,"createTime":"2021-10-16T06:16:16.000+00:00","updateTime":"2021-10-16T06:16:16.000+00:00"},{"id":2,"bannerUrl":"https://dimg07.c-ctrip.com/images/0101l120008ybqg3b01A2_C_1600_1200.jpg","bannerName":"三孔","isShow":1,"createTime":"2021-10-16T06:16:36.000+00:00","updateTime":"2021-10-16T06:16:36.000+00:00"},{"id":3,"bannerUrl":"https://dimg04.c-ctrip.com/images/0105g120008r70va198B2_C_1600_1200.png","bannerName":"水泊梁山","isShow":1,"createTime":"2021-10-16T06:17:30.000+00:00","updateTime":"2021-10-16T06:17:30.000+00:00"}]
/// status : 200
/// msg : "ok"

class BannerModel {
  BannerModel({
      List<BannerItemModel>? data,
      int? status, 
      String? msg,}){
    _data = data;
    _status = status;
    _msg = msg;
}

  BannerModel.fromJson(dynamic json) {
    if (json['data'] != null) {
      _data = [];
      json['data'].forEach((v) {
        _data?.add(BannerItemModel.fromJson(v));
      });
    }
    _status = json['status'];
    _msg = json['msg'];
  }
  List<BannerItemModel>? _data;
  int? _status;
  String? _msg;

  List<BannerItemModel>? get data => _data;
  int? get status => _status;
  String? get msg => _msg;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_data != null) {
      map['data'] = _data?.map((v) => v.toJson()).toList();
    }
    map['status'] = _status;
    map['msg'] = _msg;
    return map;
  }

}

/// id : 1
/// bannerUrl : "https://dimg03.c-ctrip.com/images/100g1f000001gqyipDB6A_R_1600_10000.jpg"
/// bannerName : "尼山圣境"
/// isShow : 1
/// createTime : "2021-10-16T06:16:16.000+00:00"
/// updateTime : "2021-10-16T06:16:16.000+00:00"

class BannerItemModel {
  BannerItemModel({
      int? id, 
      String? bannerUrl, 
      String? bannerName, 
      int? isShow, 
      String? createTime, 
      String? updateTime,}){
    _id = id;
    _bannerUrl = bannerUrl;
    _bannerName = bannerName;
    _isShow = isShow;
    _createTime = createTime;
    _updateTime = updateTime;
}

  BannerItemModel.fromJson(dynamic json) {
    _id = json['id'];
    _bannerUrl = json['bannerUrl'];
    _bannerName = json['bannerName'];
    _isShow = json['isShow'];
    _createTime = json['createTime'];
    _updateTime = json['updateTime'];
  }
  int? _id;
  String? _bannerUrl;
  String? _bannerName;
  int? _isShow;
  String? _createTime;
  String? _updateTime;

  int? get id => _id;
  String? get bannerUrl => _bannerUrl;
  String? get bannerName => _bannerName;
  int? get isShow => _isShow;
  String? get createTime => _createTime;
  String? get updateTime => _updateTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['bannerUrl'] = _bannerUrl;
    map['bannerName'] = _bannerName;
    map['isShow'] = _isShow;
    map['createTime'] = _createTime;
    map['updateTime'] = _updateTime;
    return map;
  }

}